#ifndef CRYPTOUTIL_H
#define CRYPTOUTIL_H

#include "wlan.hpp"

#define MAX_UINT	0xFFFFFFFF

#define	RSA 			1
#define	ELGAMAL			2
#define	DIFFIEHELLMAN	3

typedef struct {
	unsigned char id;
	
	char data[ 12 ];
} CryptoPacket, *PCryptoPacket;

unsigned int calculateGCD(unsigned int, unsigned int);
unsigned int computeRandomNumber();	// where GCD(return value, prime) = 1
unsigned int modularExponentiation( unsigned int, unsigned int, unsigned int );

#endif
